package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetMealDishMapper {
    /**
     * 根据菜品id查询套餐信息
     * @param ids
     * @return
     */
    List<SetmealDish> QueryByDishId(List<Long> ids);

    /**
     * 批量插入套餐和菜品的关联关系
     * @param setmealDish
     */

    void insertSetmealDish(SetmealDish setmealDish);

    //@Delete("delete from setmeal_dish where setmeal_id in (#{id})")
    void deleteBySetmeal(List<Long> ids);

    /**
     * 根据套餐id查询套餐和菜品的关联关系
     **/
    List<SetmealDish> QueryBySetmealId(List<Long> ids);
}
